/**
 * jims.
 */
package com.jims.master.modules.sys.security;

/**
 * 用户和密码（包含验证码）令牌类
 * @author ThinkGem
 * @version 2013-5-19
 */
public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {

	private static final long serialVersionUID = 1L;

	private String captcha;
	private boolean mobileLogin;
	private String mobileCode; //手机验证码
	private String backUrl;
	private String type;   //登录类型
	private String userType; //用户类型
    private boolean ajaxIs;
    private String openid;
    private String qqOpenid;



	public UsernamePasswordToken() {
		super();
	}

	public UsernamePasswordToken(String username, char[] password,
								 boolean rememberMe, String host, String captcha, boolean mobileLogin, String mobileCode,String backUrl,String type,String userType,boolean ajaxIs,String openid,String qqOpenid) {
		super(username, password, rememberMe, host);
		this.captcha = captcha;
		this.mobileLogin = mobileLogin;
		this.mobileCode = mobileCode;
		this.backUrl=backUrl;
		this.type=type;
		this.userType=userType;
        this.ajaxIs=ajaxIs;
        this.openid=openid;
		this.qqOpenid=qqOpenid;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public boolean isMobileLogin() {
		return mobileLogin;
	}

	public String getMobileCode() {
		return mobileCode;
	}

	public void setMobileCode(String mobileCode) {
		this.mobileCode = mobileCode;
	}

	public String getBackUrl() {
		return backUrl;
	}

	public void setBackUrl(String backUrl) {
		this.backUrl = backUrl;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUserType() {return userType;}

	public void setUserType(String userType) {this.userType = userType;}

    public boolean isAjaxIs() {
        return ajaxIs;
    }

    public void setAjaxIs(boolean ajaxIs) {
        this.ajaxIs = ajaxIs;
    }

	public String getOpenid() {return openid;}

	public void setOpenid(String openid) {this.openid = openid;}

	public String getQqOpenid() {return qqOpenid;}

	public void setQqOpenid(String qqOpenid) {this.qqOpenid = qqOpenid;}
}